import { defineStore } from 'pinia'
// 定义一个 pinia 状态管理模块
export const useForgotPasswordStore = defineStore('forgotPassword', {
  state: () => ({
    showForgotPasswordModal: false // 是否显示忘记密码组件（模态框）
  }),
  actions: {
    // 显示忘记密码组件
    showForgotPassword() {
      this.showForgotPasswordModal = true
    },
    // 隐藏忘记密码组件
    hideForgotPassword() {
      this.showForgotPasswordModal = false
    }
  }
})
